#ifndef BATTERYPAGEPRESENTER_HPP
#define BATTERYPAGEPRESENTER_HPP

#include <gui/model/ModelListener.hpp>
#include <mvp/Presenter.hpp>

using namespace touchgfx;

class BatteryPageView;

class BatteryPagePresenter : public touchgfx::Presenter, public ModelListener
{
public:
    BatteryPagePresenter(BatteryPageView& v);

    /**
     * The activate function is called automatically when this screen is "switched in"
     * (ie. made active). Initialization logic can be placed here.
     */
    virtual void activate();

    /**
     * The deactivate function is called automatically when this screen is "switched out"
     * (ie. made inactive). Teardown functionality can be placed here.
     */
    virtual void deactivate();

    virtual ~BatteryPagePresenter() {};
		//物理按键的页面跳转
		virtual void BatteryPageChange(uint8_t newFiveKeyFunc);
		//BatteryPagePresenter状态
		void BatteryPagePresenterState(bool enable);
		//更新电压、电流
		virtual void updateBatteryPageInfo(uint16_t CurrentVal, uint16_t VoltageVal);
private:
    BatteryPagePresenter();

    BatteryPageView& view;
};

#endif // BATTERYPAGEPRESENTER_HPP
